<%@ Control Language="C#"    Inherits="CVCommunity.Admin.Category" %>
<%@ Register tagPrefix="forum" namespace="CVCommunity.Provider" assembly="CVCommunity.Provider"%>

<form runat="server" onsubmit="return checknumber();">
<div class="grid">
<table cellspacing="0" class="inner">
<tr class="forumno category">
<td>版区管理</td>
</tr>
<tr class="forumtd">
<td><a href="?action=category&operation=list">&rsaquo;&rsaquo;&nbsp;版区列表</a>&nbsp;&nbsp;&nbsp;<a href="?action=category&operation=add">&rsaquo;&rsaquo;&nbsp;添加版区</a>&nbsp;&nbsp;&nbsp;<a href="?action=board&operation=add">&rsaquo;&rsaquo;&nbsp;添加版面 </a></td>
</tr>
<tr class="forumtd">
<td>
<asp:Panel ID="AddPanel" Visible="false" runat="server">
<table cellspacing="0" class="inner">
<tr class="forumno">
<td width="120">版区名称</td>
<td><asp:TextBox ID="Name" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" />
*
<asp:RequiredFieldValidator
		  		 ControlToValidate="Name"
				 ErrorMessage="必须填写版区名称" 
				 EnableClientScript="true" 
				 runat="server" /></td>
</tr>
<tr class="forumno">
<td>描述</td>
<td><asp:TextBox ID="Desc" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" runat="server" /></td>
</tr>
<tr class="forumno">
<td><asp:CheckBox ID="visible" CssClass="smallbox" runat="server" />
可见</td>
<td><asp:CheckBox ID="Horizontal" CssClass="smallbox" runat="server" />
版面水平排列&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;列数
<asp:TextBox ID="Columns" runat="server" class="input2" onBlur="this.className='input2'" onFocus="this.className='input1'" Width="40" Text="2" alt='numeric' />
( 版面水平排列启用时才有效)</td>
</tr>
<tr class="forumno">
<td colspan="4" align="center"><asp:Button Text=" 提交 " class="button" OnClick="Save" runat="server" /></td>
</tr>
</table>
</asp:Panel>
</td>
</tr>
<tr>
<td>
<asp:Panel ID="ListPanel" runat="server">
<table cellspacing="0" class="inner" style="text-align:center">
<tr class="forumno" style="background:#E8FAD3;color:#000000">
<td width="100">版区名称</td>
<td>描述</td>
<td width="50">顺序</td>
<td width="80">水平排列</td>
<td width="50">列数</td>
<td width="50">可见</td>
<td width="60">操作</td>
</tr>
<asp:Repeater enableviewstate="false" id="list" runat="server">
<ItemTemplate>
<tr class="forumtd" style="font-size:12px">
<td><forum:Span id="name" runat="server" /></td>
<td><forum:Span id="desc" runat="server" /></td>
<td><forum:Span id="sortid" runat="server" /></td>
<td class="smallbox"><forum:Span id="horizontal" runat="server" /></td>
<td><forum:Span id="columns" runat="server" /></td>
<td class="smallbox"><forum:Span id="visible" runat="server" /></td>
<td><forum:Anchor id="remove" text="删除" runat="server" onclick="return confirm('确定要删除吗？');" /></td>
</tr>
</ItemTemplate>
</asp:Repeater>
<tr class="forumtd" >
<td colspan="7">
<asp:Button Text=" 提交 " class="button" OnClick="Edit" runat="server" />
</td>
</tr></table>
</asp:Panel>
</td>
</tr>
</table>
</div>
</form>